package com.wuseguang.springcloud.util;

/**
 * @描述 错误码信息
 * @创建人 zm
 * @创建时间 2019/11/17
 */
public enum CodeUtil {

    SUCCESS(200, "成功"),
    PASSWORD_ERROR(2001, "密码错误"),
    FAILED_TO_RESET_PASSWORD(2002, "重置密码错误"),
    LOG_IN_IN_THE_PAST(2003, "登录过期"),
    MOBILE_IS_NULL(2004, "手机号码为空"),
    PWD_IS_NULL(2005, "密码为空"),
    USER_DOES_NOT_EXIST(2006, "用户不存在"),
    LOGIN_FAILED(2007, "登录失败"),
    ADD_FAILURE(2008, "添加失败"),
    MODIFICATION_FAILED(2009, "修改失败"),
    DELETE_FAILED(2010, "删除失败"),
    QUERY_FAILED(2011, "查询失败或为空"),
    PERMISSION_UPDATE_FAILED(2012, "权限更新失败"),
    REQUIRED_VALUE_IS_EMPTY(2013, "必填值为空"),
    THE_DEFAULT_OPTION_IS_NOT_OPERATIONAL(2014, "默认选项不可操作"),
    ROLE_DELETION_FAILED(2015, "角色删除失败"),
    ROLE_MODIFICATION_FAILED(2016, "角色修改失败"),
    ROLE_ALREADY_EXISTS(2017, "角色已经存在"),
    DO_NOT_IMPORT_THE_WHOLE_SCHOOL_TIMETABLE(2018, "非管理员不可导入全校课表"),
    SECTION_CONTACT_ADMINISTRATOR_NOT_SET(2019, "未设置节次联系管理员"),
    NON_ADMINISTRATOR_UNAVAILABLE(2020, "非管理员不可以操作"),
    INCLUDE_DELETE(2021, "下级有班级，如要删除，需先删除班级！"),
    INCLUDE_STUDENTS(2022, "班级下有学生，如要删除，需先删除学生！"),
    ACCOUNT_NAME_ALREADY_EXISTS(2023, "学科名字已存在！"),
    CLASS_TIME_IS_DIFFERENT_FROM_CLASS_TIME(2024, "上课节次跟课时不一样"),
    FAILED_TO_ADD_SCHOOL_CLASS_SECTION(2025, "添加学校上课节失败"),
    RETRIEVE_AND_REPORT_ERRORS(2026, "检索有误"),
    NO_TIMETABLE_INFORMATION(2027, "没有课表信息"),
    BINDING_EXCEEDS(2028, "绑定超过最大设备数量"),
    BEEN_BOUND(2029, "该设备已被绑定"),
    NO_STUDENT_DATA(2030, "没有学生数据"),
    INFORMATION_IS_EMPTY(2031, "信息为空"),
    THE_PASSWORD_IS_EMPTY(2032, "密码为空"),
    PASSWORDS_ARE_INCONSISTENT(2033, "密码不一致"),
    NO_TEACHER_DATA(2034, "没有教师数据"),
    IMAGE_PUBLISHING_FAILED(2035, "图片发布失败"),
    NO_PICTURES_UPLOADE(2036, "没有上传图片"),
    NO_AUTHORITY(2037, "无权限"),
    NO_VIDEO_UPLOADED(2048, "没有上传视频"),
    VIDEO_PUBLISHING(2049, "视频发布失败"),
    CANNOT_DELETE(2050, "该班次已被考勤组使用,无法删除。"),
    CAN_NOT_REPEAT(2051, "教室编号已存在，不能重复。"),
    CANNOT_UPDATE(2052, "该班次已被考勤组使用,无法修改。"),
    TEACHING_SUBJECT(2053, "有教师在任教此科目，是否继续删除？"),
    PLEASE_CHOOSE(2054, "请选择"),
    BIND_REPEATEDLY(2055, "该班级已绑定其他教室，是否解绑被绑定的教室！"),
    BINDING_FAILED(2056, "绑定推送失败！"),
    NO_PUBLISHER_NO_CAO_ZU(2057, "不是发布人不可操作"),
    SUCCESSFUL_ATTENDANCE(2058, "考勤成功！"),
    ATTENDANCE_FAILURE(2059, "考勤失败，请重试！"),
    REPEAT_ATTENDANCE(2060, "已考勤，无法重复考勤！"),
    UPLOAD_FAILURE(2061, "上传失败"),
    NOTAN_ATTENDANCEPERSON(2062, "不是该考勤组出勤人员！"),
    NO_ATTENDANCE_INFORMATION_ON_THE_DAY(2063, "当天没有考勤"),
    PARENTS_ARE_NOT_ALLOWED_TO_VISIT(2064, "家长不可访问"),
    FACE_HAS_BEEN_UPLOADED(2065, "人脸已经上传"),
    TELL_THE_FACE_INFORMATION_IS_EMPTY(2066, "告知人脸信息为空"),
    SENSITIVE_INFORMATION_DETECTED(2067, "检测到敏感信息，图片或文字"),
    NO_DOCKING_INFORMATION(2068, "未对接信息"),
    OVER_MAXIMUM_SCORE(2069, "学生名字不存在"),
    SERVER_BUSY(2070, "服务器繁忙,请稍后重试！"),
    CODE_FAILURE(2071, "二维码已过期"),
    SIGNED_IN(2072, "已签到"),
    THE_QUOTA_IS_FULL(2073, "名额已满"),
    REGISTRATION_TIME_HAS_PASSED(2074, "报名时间已过"),
    STUDENT_FACE_REGISTERED(2074, "系统检测到此学生有一条人脸数据，请先删除"),
    THERE_ARE_DUPLICATE_NUMBERS(2075, "有重复号码，请修改学生登录号码"),
    ENROLLMENT_HAS_BEEN_OPENED_AND_CANNOT_BE_DELETED(2076, "报名已开启不可删除"),
    ACTIVITY_HAS_STARTED_AND_CANNOT_BE_DELETED(2077, "活动已开始不可删除"),
    PUBLISHER_DELETE(2078, "只能发布人删除!!"),
    INSUFFICIENT_SCORE(2079, "分数不足"),
    CARDNUMBERDOES_NOTEXIST(2080, "卡号不存在,请联系管理员!"),
    PLEASE_ENTER_THE_CORRECT_MOBILE_PHONE_NUMBER(2081, "请输入正确的手机号码"),
    MOBILE_NUMBER_ALREADY_EXISTS(2082, "手机号码已存在"),
    DUPLICATE_ACCOUNT_NUMBER(2083, "保存失败，账号已存在"),
    DUPLICATE_ACCOUNT_SHIFT(2084, "保存失败，班次名字已存在"),
    POINTS_DEDUCTED_TO_THE_UPPER_LIMIT(2085,"扣分已到上限"),
    THE_EXAMINATION_ROOM_ALREADY_EXISTS(2086,"此考试名称已存在"),
    PLEASE_DELETE_THE_REGISTERED_FACES_OF_OTHER_CLASSES_FIRST(2087,"请先删除其他班级的注册人脸"),
    NOT_TO_CHANGE_CLASS_ATTENDANCE(2088, "非该班级出勤人员"),
    DEVICE_AFTER_OPERATION(2089, "设备未绑定，请绑定设备后操作"),
    THE_CARD_NUMBER_TO_REPEAT(2090, "卡号有重复"),
    NUMBER_ALREADY_EXISTS(2091, "手机号码有重复"),
    ;

    /**
     * 错误码
     */
    private int code;
    /**
     * 信息
     */
    private String msg;

    CodeUtil(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
